/*
 * This file is part of the OdinMS Maple Story Server
 * Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
 *                    Matthias Butz <matze@odinms.de>
 *                    Jan Christian Meyer <vimes@odinms.de>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License version 3
 * as published by the Free Software Foundation. You may not use, modify
 * or distribute this program under any other version of the
 * GNU Affero General Public License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
-- Odin JavaScript --------------------------------------------------------------------------------
	Kenta - Aquarium : Zoo
-- By ---------------------------------------------------------------------------------------------
	GoldenKevin
-- Version Info -----------------------------------------------------------------------------------
	1.0 - First Version by GoldenKevin
-- Description ------------------------------------------------------------------------------------
	Warps to Kenta's Breeding Room to protect the hog and collect 5 Pheromones to complete
	the quest "Monster Riding". NOTE : This is the Kenta in Aquarium Zoo, the Kenta that's
	in Kenta's Breeding Room is NPC ID 9060000
---------------------------------------------------------------------------------------------------
**/

var status = 0;

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode < 1) {
		cm.dispose();
	} else {
		if (mode == 1) {
			status++;
		}
		if (status == 0) {
			cm.sendNext("I need you to protect my hogs from alien attack. If you complete this for me, you'll gain a Saddle and the Monster Rider skill. If you fail the first time, you may try again as many times as you need to. Once the timer runs out or one of my hogs dies, you'll be warped out.");
		} else if (status == 1) {
			cm.sendYesNo("Would you like to enter #b#m923010000##k?");
		} else if (status == 2) {
			cm.warp(923010000);
			cm.dispose();
		} else {
			cm.dispose();
		}
	}
}